import Vue from 'vue'
import Router from 'vue-router'
import AccountBook from '@/components/AccountBook'
import Charts from '@/components/Charts'
import AddCcountBook from '@/components/AddAccountBook'

Vue.use(Router)
export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'accountBook',
      component: AccountBook
    },
    {
      path: '/charts',
      name: 'charts',
      component: Charts
    },
    {
      path: '/add',
      name: 'addAccountBook',
      component: AddCcountBook
    }
  ]
})
